package com.llyb.tingshu.user.client.impl;


import com.llyb.tingshu.common.result.Result;
import com.llyb.tingshu.model.user.VipServiceConfig;
import com.llyb.tingshu.user.client.UserInfoFeignClient;
import com.llyb.tingshu.vo.user.UserPaidRecordVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class UserInfoDegradeFeignClient implements UserInfoFeignClient {

    @Override
    public Result getUserInfo(Long userId) {
        log.error("UserInfoDegradeFeignClient: 获取用户信息失败");
        return null;
    }

    @Override
    public Result userIsPaidTrack(Long albumId, List<Long> trackIdList) {
        log.error("UserInfoDegradeFeignClient: 判断用户是否购买了那些专辑失败");
        return null;
    }

    /**
     * 根据itemId获取VIP服务配置信息
     *
     * @param id
     * @return
     */
    @Override
    public Result<VipServiceConfig> getVipServiceConfig(Long id) {
        log.error("UserInfoDegradeFeignClient: 获取VIP服务配置信息失败");
        return null;
    }

    /**
     * 判断用户是否购买过专辑
     *
     * @param albumId
     * @return
     */
    @Override
    public Result<Boolean> isPaidAlbum(Long albumId) {
        log.error("UserInfoDegradeFeignClient: 判断用户是否购买过专辑失败");
        return null;
    }

    /**
     * 获取专辑已支付的声音Id集合列表
     *
     * @param albumId
     * @return
     */
    @Override
    public Result<List<Long>> findUserPaidTrackList(Long albumId) {
        log.error("UserInfoDegradeFeignClient: 获取专辑已支付声音Id集合列表失败");
        return null;
    }

    /**
     * 处理用户购买记录
     *
     * @param userPaidRecordVo
     * @return
     */
    @Override
    public Result savePaidRecord(UserPaidRecordVo userPaidRecordVo) {
        log.error("UserInfoDegradeFeignClient: 处理用户购买记录失败");
        return null;
    }
}
